<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>原型继承</title>
</head>
<body>
  <script>
       function Woman(){
       
       }
       function Man(){
          
       }
       const Person={
          eyes:2,
          head:1
       }
       Woman.prototype=Person
       Woman.prototype.constructor=Woman
       Man.prototype=Person
       Man.prototype.constructor=Man
      //  const red=new Woman()
      //  console.log(red)
      //  console.log(red.eyes);
      //  const pink=new Man()
      //  console.log(pink)
  </script>
</body>
</html>